package com.ruoyi.btlfbreed.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品使用登记对象 tb_medicine_records
 * 
 * @author codeman
 * @date 2024-05-07
 */
public class TbMedicineRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 药品使用记录ID（主键，自增） */
    private Long recordId;

    /** 肉鸡ID */
    @Excel(name = "肉鸡ID")
    private Long chickenId;
    @Excel(name = "肉鸡")
    private String chickenNo;

    private Long medicineId;
    /** 药品名称 */
    @Excel(name = "药品名称")
    private String medicineName;
    /** 用药剂量 */
    @Excel(name = "用药剂量")
    private BigDecimal dosage;

    /** 用药日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用药日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date administrationDate;

    /** 饲养员 */

    private Long userId;
    @Excel(name = "饲养员")
    private String userName;



    /** 用药时间（可选） */
    private Date administrationTime;

    /** 用药方式（如口服、注射等） */
    private String administrationMethod;

    /** 医生或兽医名称 */
    private String doctorOrVeterinarian;

    /** 药效观察（可选） */
    private String effectObservation;

    /** 删除标志（0代表存在，1代表删除） */
    private String delFlag;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setChickenId(Long chickenId) 
    {
        this.chickenId = chickenId;
    }

    public Long getChickenId() 
    {
        return chickenId;
    }
    public void setMedicineId(Long medicineId) 
    {
        this.medicineId = medicineId;
    }

    public Long getMedicineId() 
    {
        return medicineId;
    }
    public void setDosage(BigDecimal dosage) 
    {
        this.dosage = dosage;
    }

    public BigDecimal getDosage() 
    {
        return dosage;
    }
    public void setAdministrationDate(Date administrationDate) 
    {
        this.administrationDate = administrationDate;
    }

    public Date getAdministrationDate() 
    {
        return administrationDate;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAdministrationTime(Date administrationTime) 
    {
        this.administrationTime = administrationTime;
    }

    public Date getAdministrationTime() 
    {
        return administrationTime;
    }
    public void setAdministrationMethod(String administrationMethod) 
    {
        this.administrationMethod = administrationMethod;
    }

    public String getAdministrationMethod() 
    {
        return administrationMethod;
    }
    public void setDoctorOrVeterinarian(String doctorOrVeterinarian) 
    {
        this.doctorOrVeterinarian = doctorOrVeterinarian;
    }

    public String getDoctorOrVeterinarian() 
    {
        return doctorOrVeterinarian;
    }
    public void setEffectObservation(String effectObservation) 
    {
        this.effectObservation = effectObservation;
    }

    public String getEffectObservation() 
    {
        return effectObservation;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getChickenNo()
    {
        return chickenNo;
    }

    public void setChickenNo(String chickenNo)
    {
        this.chickenNo = chickenNo;
    }

    public String getMedicineName()
    {
        return medicineName;
    }

    public void setMedicineName(String medicineName)
    {
        this.medicineName = medicineName;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("chickenId", getChickenId())
            .append("medicineId", getMedicineId())
            .append("dosage", getDosage())
            .append("administrationDate", getAdministrationDate())
            .append("userId", getUserId())
            .append("remark", getRemark())
            .append("administrationTime", getAdministrationTime())
            .append("administrationMethod", getAdministrationMethod())
            .append("doctorOrVeterinarian", getDoctorOrVeterinarian())
            .append("effectObservation", getEffectObservation())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
